package com.mall4jcola.cloud.convertor;

import cn.hutool.core.bean.BeanUtil;
import com.mall4jcola.cloud.auth.model.UserAuthEntity;
import com.mall4jcola.cloud.tunnel.database.dataobj.UserAuthsDO;

/**
 * @author hmxchen
 */
public class UserAuthConvertor {
    public static UserAuthEntity toEntity(UserAuthsDO userAuthsDO){
        return BeanUtil.toBean(userAuthsDO, UserAuthEntity.class);
    }

    public static UserAuthsDO toModel(UserAuthEntity userAuthEntity){
        return BeanUtil.toBean(userAuthEntity, UserAuthsDO.class);
    }
}
